package com.thinkingcoder.tcrpc.core.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

@Data
// @Configuration
@ConfigurationProperties(prefix = "tcrpc.consumer")
public class ConsumerProperties {

    private int retries = 1;

    private int timeout = 1000;

    private int faultLimit = 10;

    private int halfOpenInitialDelay = 10 * 1000;

    private int halfOpenDelay = 60 * 1000;

    private int grayRatio = 0;
}
